package pi.server.storage.client;

public class UnitBase{
	static public int UnitTypeKing = 1;
	static public int UnitTypeSoldier = 2;
	static public int UnitTypeSoldierArcher = 3;
	
	public int x;
	public int y;
	public int life;
	public int attack;
	public int movimentation;
	
	public int id;
	
	public UnitBase(){
		this.x = -1;
		this.y = -1;
		this.life = -1;
		this.attack = -1;
		this.movimentation = -1;
		
		this.id = -1;
	}
	
	public UnitBase(int unitType, int x, int y){
		this.x = x;
		this.y = y;
		this.life = 5;
		this.attack = 5;
		this.movimentation = 5;
		
		this.id = unitType;
	}
	
	void ShowData(){
		if(id != -1){
			if(id == 1){
				System.out.println("Id: UnitTypeKing");
			}else if(id == 2){
				System.out.println("Id: UnitTypeSoldier");
			}else if(id == 3){
				System.out.println("Id: UnitTypeSoldierArcher");
			}
			System.out.println("X: " + x);
			System.out.println("Y: " + y);
			System.out.println("Life: " + life);
//			System.out.println("Attack: " + attack);
//			System.out.println("Movimentation: " + movimentation);
		}
	}
}